package com.spider.moudle.entity;

import com.alibaba.fastjson.JSONObject;
import com.spider.moudle.util.GsonUtils;

/**
 * ${DESCRIPTION}
 *
 * @author AntKun
 * @create 2017-12-20 17:41
 **/
public class BaseBean {

    public JSONObject toJSONObject() {
        if (this != null) {
            return JSONObject.parseObject(GsonUtils.toJson(this));
        } else {
            return null;
        }
    }
}
